import request from '../../../util/request.js';

export function O_setup(username) {
    return request({
        method: 'GET',
        url: '/O_setup?username=' + username,
    });
}

export function O_carlist(username) {
    return request({
        method: 'GET',
        url: '/O_carlist?username=' + username,
    });
}

export function O_updateUserImage(image, username) {
    return request({
        method: 'post',
        url: "O_updateUserImage?image=" + image + "&username=" + username
    });
}

export function O_updateUserName(name, username) {
    return request({
        method: 'post',
        url: "O_updateUserName?name=" + name + "&username=" + username
    });
}

export function O_updatePhone(phone, username) {
    return request({
        method: 'post',
        url: "O_updatePhone?phone=" + phone + "&username=" + username
    });
}

export function O_updateID_card(ID_card, username) {
    return request({
        method: 'post',
        url: "O_updateID_card?ID_card=" + ID_card + "&username=" + username
    });
}


